.class Lcom/estrongs/android/widget/g$e;
.super Ljava/lang/Object;
.source "ImageChooserDialog.java"

# interfaces
.implements Lcom/estrongs/android/view/FeaturedGridViewWrapper$c;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/widget/g;->c()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/widget/g;


# direct methods
.method constructor <init>(Lcom/estrongs/android/widget/g;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/widget/g$e;->a:Lcom/estrongs/android/widget/g;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;I)V
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/widget/g$e;->a:Lcom/estrongs/android/widget/g;

    invoke-virtual {p1}, Lcom/estrongs/android/widget/g;->a()Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    move-result-object p1

    invoke-virtual {p1, p3}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->e(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/fs/g;

    .line 2
    invoke-interface {p1}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/fs/l;->b()Z

    move-result p2

    if-eqz p2, :cond_1

    .line 3
    iget-object p2, p0, Lcom/estrongs/android/widget/g$e;->a:Lcom/estrongs/android/widget/g;

    iget-object p2, p2, Lcom/estrongs/android/widget/g;->a:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {p2, p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->a(Lcom/estrongs/fs/g;)V

    .line 4
    iget-object p2, p0, Lcom/estrongs/android/widget/g$e;->a:Lcom/estrongs/android/widget/g;

    iget-object p2, p2, Lcom/estrongs/android/widget/g;->f:Landroid/widget/TextView;

    if-eqz p2, :cond_1

    const-string p2, "item_count"

    .line 5
    invoke-interface {p1, p2}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p2

    if-eqz p2, :cond_0

    .line 6
    iget-object p3, p0, Lcom/estrongs/android/widget/g$e;->a:Lcom/estrongs/android/widget/g;

    iget-object v0, p3, Lcom/estrongs/android/widget/g;->f:Landroid/widget/TextView;

    iget-object p3, p3, Lcom/estrongs/android/widget/g;->a:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, p1, p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->a(Ljava/lang/String;Ljava/lang/Object;)Landroid/text/SpannableString;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/widget/g$e;->a:Lcom/estrongs/android/widget/g;

    iget-object p1, p1, Lcom/estrongs/android/widget/g;->f:Landroid/widget/TextView;

    const-string p2, "MIDDLE"

    invoke-static {p2}, Landroid/text/TextUtils$TruncateAt;->valueOf(Ljava/lang/String;)Landroid/text/TextUtils$TruncateAt;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    goto :goto_0

    .line 8
    :cond_0
    iget-object p2, p0, Lcom/estrongs/android/widget/g$e;->a:Lcom/estrongs/android/widget/g;

    iget-object p2, p2, Lcom/estrongs/android/widget/g;->f:Landroid/widget/TextView;

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/widget/g$e;->a:Lcom/estrongs/android/widget/g;

    iget-object p1, p1, Lcom/estrongs/android/widget/g;->f:Landroid/widget/TextView;

    const-string p2, "END"

    invoke-static {p2}, Landroid/text/TextUtils$TruncateAt;->valueOf(Ljava/lang/String;)Landroid/text/TextUtils$TruncateAt;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    :cond_1
    :goto_0
    return-void
.end method
